Ext.define('Admin.view.baseInfo.MapModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.mapModel',
    stores: {
        pStore: {
            proxy: {
                type: "api",
                reader: {
                    type: "json",
                    rootProperty: "list"
                },
                extraParams: { river: config.RIVER },
                url: config.URL + "szy/info/ddsDrPptn/list"
            },
            listeners: {
                load: "ppLoad"
            }
        },
        zqStore: {
            proxy: {
                type: "api",
                reader: {
                    type: "json"
                },
                extraParams: { river: config.RIVER },
                url: config.URL + "info/ddsDrRiver/findNewData"
            },
            listeners: {
                load: "swLoad"
            }
        },
        zqSkStore: {
            proxy: {
                type: "api",
                reader: {
                    type: "json"
                },
                extraParams: { river: config.RIVER },
                url: config.URL + "szy/info/ddsDrRsvr/findNewData"
            },
            listeners: {
                load: "swSkLoad"
            }
        },
        wqStore: {
            proxy: {
                type: "api",
                reader: {
                    type: "json",
                    rootProperty: "list"
                },
                extraParams: { river: config.RIVER },
                url: config.URL + "szy/info/ddsDrWq/list"
            },
            listeners: {
                load: "wqLoad"
            }
        }
    }
});
